package com.ibeeking.found.common.config.secret;

import java.security.KeyPair;
import java.security.PrivateKey;
import java.security.PublicKey;

/**
 * @ClassName RsaConfig
 * @Description
 * @Author ibeeking
 * @Date 2020-12-09 14:58
 **/
public class RsaConfig {

    private KeyPair keyPair;

    private String secretKey;

    public RsaConfig() {
    }

    public RsaConfig(PublicKey publicKey, PrivateKey privateKey, String secretKey) {
        this.keyPair = new KeyPair(publicKey, privateKey);
        this.secretKey = secretKey;
    }

    public KeyPair getKeyPair() {
        return keyPair;
    }

    public String getSecretKey() {
        return secretKey;
    }
}
